package com.aiti.lulian.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 活动
 * </p>
 *
 * @author 
 * @since 2025-06-11
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("show_activity_info")
public class ShowActivityInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "base_id", type = IdType.ASSIGN_ID)
    private String baseId;

    /**
     * 活动标题
     */
    @TableField("base_name")
    private String baseName;

    /**
     * 活动类型-一类
     */
    @TableField("first_activity_type")
    private String firstActivityType;

    /**
     * 活动类型-二类
     */
    @TableField("second_activity_type")
    private String secondActivityType;

    /**
     * 是否开启活动报名
     */
    @TableField("start_enroll_flag")
    private Boolean startEnrollFlag;

    /**
     * 开始时间
     */
    @TableField("begin_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date beginTime;

    /**
     * 结束时间
     */
    @TableField("end_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    /**
     * 活动详情
     */
    @TableField("description")
    private String description;

    /**
     * 地址
     */
    @TableField("address")
    private String address;

    /**
     * 创建者
     */
    @TableField("creator")
    private String creator;

    /**
     * 更新者
     */
    @TableField("update_by")
    private String updateBy;

    /**
     * 创建时间
     */
    @TableField(value = "base_create_time", fill = FieldFill.INSERT)
    private Date baseCreateTime;

    /**
     * 更新时间
     */
    @TableField(value = "base_update_time", fill = FieldFill.UPDATE)
    private Date baseUpdateTime;
    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @TableField("is_delete")
    private Boolean isDelete;

    private String pic;

    private String detailPic;
    private String detailUrl;
    //来源0为后台添加，1为e展网
    private String source;

    private String province;
    private String city;
    private String county;
    @TableField(value = "street", updateStrategy = FieldStrategy.IGNORED)
    private String street;


    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date enrollTime;

    @TableField(exist = false)
    //当前登录人是否报过名
    private boolean userEnrollFlag;


    private String mobile;
}
